package com.neuedu.hw20190214;

public class Company {
    // 成员变量

    private int calculateMonth;// 打印的工资月份
    private ColaEmployee colaEmployee;
    // 行为方法

    /**
     * 打印员工工资
     */
    public void printEmployeeSalary(){
        System.out.println(calculateMonth+"月份工资：姓名："
                + colaEmployee.getEmpName()+",工资金额："
                + colaEmployee.getSalary(calculateMonth)
        );
    }

    public Company(int calculateMonth, ColaEmployee colaEmployee) {
        this.calculateMonth = calculateMonth;
        this.colaEmployee = colaEmployee;
    }

    public Company() {
    }

    public int getCalculateMonth() {
        return calculateMonth;
    }

    public void setCalculateMonth(int calculateMonth) {
        this.calculateMonth = calculateMonth;
    }

    public ColaEmployee getColaEmployee() {
        return colaEmployee;
    }

    public void setColaEmployee(ColaEmployee colaEmployee) {
        this.colaEmployee = colaEmployee;
    }
}
